const WXAPI = require('../Wxapi/api.js')

module.exports = {
  checkLogin: function(data){
    // 判断登陆状态
    wx.checkSession({
      success() {
        console.log(123)
        var uid = getStorageSync("uid");
        console.log(uid);debugger;
        // 已登录
        if (uid !== 0 || uid !== '' || uid !== null) {
          return uid
        } else {
          return false
        }
      },
      fail() {
        return false
      }
    })
  }
}